import React from "react";
import styled from "@emotion/styled";

function ReactCom({className}) {
    return (
        <div className={className}>
            为react组件添加样式
        </div>
    )
}
const CssReactCompStr=styled(ReactCom)`
    heihgt:100px;
    color:red
`
const CssReactCompObj=styled(ReactCom)({
    heihgt:100,
    color:'orange'
})
export default function CssReactComp(){
    return (
        <>
            <CssReactCompStr />
            <CssReactCompObj />
        </>
    )
}